package Units;

import com.jme3.asset.AssetManager;
import com.jme3.light.DirectionalLight;
import com.jme3.math.Quaternion;
import com.jme3.math.Vector3f;
import com.jme3.scene.Node;
import com.jme3.scene.Spatial;

public class Creatures {
	private static final String PATH = "models/animated/creatures/";
	private static final String IMP_FILE = PATH + "imp.mesh.xml";
	private static final String BILE_DEMON_FILE = PATH + "bile_demon.mesh.xml";
	private Spatial imp;
	
	public Creatures(AssetManager assetManager) {
		imp = assetManager.loadModel(IMP_FILE);
	    imp.rotate(new Quaternion(1, 0, 0, 1));
	    
	    imp.move(0.5f, 0.5f, 0);
		imp.setLocalScale(0.5f);
		DirectionalLight dl = new DirectionalLight();
		dl.setDirection(new Vector3f(-0.1f, -1f, -1).normalizeLocal());
		imp.addLight(dl);
		
	}
	
	public Spatial getImp() {
		return imp.clone();
	}

}